package com.xuelang.pipeline.artifact.app.nexus3v1.xo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class HTTPClientConnectionAttributes {
    /**
     * Whether to enable redirects to the same location (may be required by some servers)
     */
    private Boolean enableCircularRedirects;
    /**
     * Whether to allow cookies to be stored and used
     */
    private Boolean enableCookies;
    /**
     * Total retries if the initial connection attempt suffers a timeout
     */
    private Long retries;
    /**
     * Seconds to wait for activity before stopping and retrying the connection
     */
    private Long timeout;
    /**
     * Custom fragment to append to User-Agent header in HTTP requests
     */
    private String userAgentSuffix;
    /**
     * Use certificates stored in the Nexus Repository Manager truststore to connect to external
     * systems
     */
    private Boolean useTrustStore;
}